#ifndef  TOS_MQTT_CONFIG_H
tos_sal_module_parse_domain(MQTT_SERVER_DOMAIN,host_ip,sizeof(host_ip));

mqtt_set_port(client, MQTT_SERVER_PORT);
mqtt_set_host(client, host_ip);
mqtt_set_client_id(client, MQTT_CLIENT_ID);
mqtt_set_user_name(client, MQTT_USR_NAME);
mqtt_set_password(client, MQTT_PASSWORD);
mqtt_set_clean_session(client, 1);

error = mqtt_subscribe(client, MQTT_SUBSCRIBE_TOPIC_DOWN, QOS0, tos_topic_handler);

error = mqtt_publish(client, MQTT_PUBLISH_TOPIC_UP, &msg);

#endif

